function openOffice($scope,$http){
    //debugger;
    var flag = Pageoffice.checkPageOffice();
    console.log(flag);
    Pageoffice.openOffice($scope, $http, {
        templateId: $scope.WJID,
        ywsjId: $scope.YWSJID,
        beanName: 'ProjectAdapter',
        beanParams: 'obj001',
        fileName: $scope.WJMC,
        title: $scope.WJMC,
        modeType: $scope.modeType,
        userDefineBtns: 'buttons.history',
        showTitlebar: true,
        showSaveBtn: true,
        saveWithRevision: true,
        showAcceptRevisionBtn : true,
        showRevisionBtn: true
    });
    if (flag) {
    } else {
        Common.dialog({
            title: '提示',
            type: 'alert',
            width: '50%',
            height: '50%',
            content: '如无法正常打开文档，请 <a target="_blank" href="/resources/help/posetup.exe">点此下载安装</a> PageOffice'
        });
    }
}